<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <ui:decorate template="/tema/padrao.xhtml">
        <ui:define name="centro">               

            <h:form id="novo">
                <h1 class="title ui-widget-header ui-corner-all">Cadastrar novo usuário</h1>
                <p:panelGrid columns="2">  
                    <f:facet name="header">  
                        Informe seus dados:
                    </f:facet>    

                    <h:outputText value="Nome Completo: *" />  
                    <p:inputText id="nome" value="#{usuarioBean.usuario.nome}" label="Nome" required="true" />

                    <h:outputLabel for="login" value="Login: *" />  
                    <p:inputText id="login" value="#{usuarioBean.usuario.login}" label="Login" required="true"/> 

                    <h:outputText value="Senha: *" />  
                    <p:password id="senha" value="#{usuarioBean.usuario.senha}" label="Senha" required="true"/>  

                    <f:facet name="footer">  
                        <p:commandButton type="submit" value="Enviar" action="#{usuarioBean.inserir}" icon="ui-icon-check" style="margin:0"/>  
                    </f:facet>  
                </p:panelGrid> 
            </h:form> 

        </ui:define>
    </ui:decorate>
</html>